Skip to content

ref(insights): remove eap conditions caches/queues/database #95230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

DominikB2014
Copy link
Contributor

@DominikB2014 DominikB2014 commented Jul 10, 2025

We can remove eap conditions now that insights+eap is at 100%.

This PR additionally removes the useFullSpanFromTrace feature in the span description component. This isn't needed for a few reasons.

  1. With eap, we have all the fields already available, no need to grab them from the trace.
  2. We don't store the actual eventId in the span, so we can't look up the event json of the parent transaction with only a span.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 10, 2025
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #95230      +/-   ##
==========================================
+ Coverage   87.83%   87.85%   +0.02%     
==========================================
  Files       10481    10469      -12     
  Lines      606068   604768    -1300     
  Branches    23674    23624      -50     
==========================================
- Hits       532324   531332     -992     
+ Misses      73380    73076     -304     
+ Partials      364      360       -4     

@DominikB2014 DominikB2014 changed the title ref(insights): remove eap conditions cache and queues ref(insights): remove eap conditions caches/queues/database Jul 11, 2025
@DominikB2014 DominikB2014 marked this pull request as ready for review July 11, 2025 19:43
@DominikB2014 DominikB2014 requested review from a team as code owners July 11, 2025 19:43
cursor[bot]

This comment was marked as outdated.

@DominikB2014 DominikB2014 marked this pull request as draft July 11, 2025 19:55
@DominikB2014 DominikB2014 marked this pull request as ready for review July 11, 2025 20:16
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Undefined Filters Parameter Causes TypeError

Spreading the optional filters parameter directly into MutableSearch.fromQueryObject() can cause a runtime TypeError when filters is undefined.

static/app/views/insights/common/components/fullSpanDescription.tsx#L35-L36

{
search: MutableSearch.fromQueryObject({'span.group': group, ...filters}),

Fix in CursorFix in Web


Bug: Malformed API URLs in `useRelease` Hook

The useRelease hook can generate malformed API URLs with a double slash (e.g., /projects/org-slug//releases/1.0.0/). This happens because the projectSlug parameter is derived from project?.slug ?? ''. If project is undefined (e.g., when indexedSpan?.project_id doesn't match a known project), projectSlug becomes an empty string, leading to the malformed URL. The useRelease hook's enabled condition should be updated to also check for a defined project.slug to prevent these invalid requests.

static/app/views/insights/database/views/databaseSpanSummaryPage.spec.tsx#L169-L170

MockApiClient.addMockResponse({
url: `/projects/org-slug//releases/1.0.0/`,

static/app/views/insights/common/components/spanDescription.tsx#L78-L84

const {data: release} = useRelease({
orgSlug: organization.slug,
projectSlug: project?.slug ?? '',
releaseVersion: indexedSpan?.release ?? '',
enabled: indexedSpan?.release !== undefined,
});

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant